<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>定位</title>
    <style>
        .box1{
            position: absolute;
            background-color: blue;
            width:150px;
            height:150px;

        }
        .box2{
            width:50px;
            height:50px;
            background-color: pink;
            position: absolute;
            left: 20px;
            top:20px;

        }
        span{
            /*//position: fixed;*/
            width:50px;
            height:50px;
            background-color: black;
            float: left;
            z-index: 5;
        }
    </style>
</head>
<body>
<!--<div class="box1">-->
    <!--<div class="box2"></div>-->
<!--</div>-->
<span>
    woshikeai
</span>

</body>
</html>